package cate.common.table.activity.throne;

import cate.common.table.ESheet;
import easy.java.dev.note.NoteClass;

@NoteClass("选拔赛结算奖励")
public class TBTrialSettleRwdSheet extends ESheet<TBTrialSettleRwdRow> {

    @Override
    public String getSheetName() {
        return "选拔赛结算奖励";
    }


    public TBTrialSettleRwdRow findRow(int group, int point) {
        for (TBTrialSettleRwdRow row : this.getList()) {
            if (row.group != group) {
                continue;
            }
            if (row.pointMin > 0 && point < row.pointMin) {
                continue;
            }
            if (row.pointMax > 0 && point > row.pointMax) {
                continue;
            }
            return row;
        }
        return null;
    }

}
